#pragma once
#ifndef __BUTTON_H__
#define __BUTTON_H__

#include <string.h>

#include "MathDef.h"
#include "Macro.h"
#include "Sprite.h"

#define BTN_WIDTH 255
#define BTN_HEIGHT 264

class Button
{
public:
	Button(void);
	Button(const char* strName, int btnId, int texId, float left, float top, float width, float height);
	virtual ~Button(void);

	void Hover(bool state) { isHovered = state; }
	void Update(float dt);
	void Render();
	bool ContainMousePoint(float x, float y);
	int GetId() { return m_iID; }

private:
	CRect m_BoundingBox;
	char* m_strName;
	CSprite* m_sprImage;

	int m_iID;
	bool isHovered;
};

#endif